package cn.net.dpi.shp.model.entity;

import cn.net.dpi.shp.handler.MultiPolygonTypeHandler;
import cn.net.dpi.shp.handler.PolygonTypeHandler;
import cn.net.dpi.shp.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import org.locationtech.jts.geom.MultiPoint;

/**
 * 道路边界变更点实体
 *
 * @author ake
 * @since 2024-12-27
 */
@Getter
@Setter
@TableName(value = "hd_boundary_change", autoResultMap = true)
public class HdBoundaryChange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 变化编号
     */
    private String changeId;

    /**
     * 边界编号
     */
    private String bordId;

    /**
     * 道路边界类型
     */
    private Long bordKind;

    private String time;

    /**
     * 距离
     */
    private Double distance;

    @TableField(typeHandler = MultiPolygonTypeHandler.class)
    private MultiPoint geometry;

    private Long fileId;

    private String version;

    private Integer versionFlag;
}
